package com.wecan.base.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Author liuzhihao
 * @Date 2022.03.24
 * @Version ${version}
 * @Description 消息类型
 */
public enum MessageType {

    SYSTEM(0, "系统消息"),
    BROADCAST(1, "系统广播消息"),
    CHAT(2, "聊天"),
    AUDIO(3, "语音"),
    VIDEO(4, "视频"),
    MESSAGE_NOTIFY(5, "消息状态通知"),
    FEED_BACK_ALL(6, "接受所有消息反馈"),
    FEED_BACK_SINGLE(7, "接收单个消息反馈"),
    EXCEPTION(8, "系统异常");
//    AUDIO_CALL(6, "语音呼叫"),
//    VIDEO_CALL(7, "视频呼叫"),
//    BYTE_CALL(8, "数据传输呼叫"),
//    AUDIO_CONNECT(9, "语音通话"),
//    VIDEO_CONNECT(10, "视频通话"),
//    BYTE_CONNECT(11, "数据传输"),
//    AUDIO_HANT_UP(12, "语音挂断");

    @EnumValue
    @JsonValue
    private final int code;

    private final String desc;

    MessageType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }
}
